package edu.zut.bailan.topicmenu.service.impl;

import edu.zut.bailan.base.service.impl.GenericTreeManagerImpl;
import edu.zut.bailan.topicmenu.dao.TopicMenuGroupDao;
import edu.zut.bailan.topicmenu.domain.TopicMenuGroup;
import edu.zut.bailan.topicmenu.service.TopicMenuGroupManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "menuGroupManager")
public class TopicMenuGroupManagerImpl extends GenericTreeManagerImpl<TopicMenuGroup, Long>
        implements TopicMenuGroupManager {

    TopicMenuGroupDao topicmenuGroupDao;

    @Autowired
    public void setMenuGroupDao(TopicMenuGroupDao menuGroupDao) {
        this.topicmenuGroupDao = menuGroupDao;
        this.treeDao = this.topicmenuGroupDao;
        this.dao = this.treeDao;
    }

}
